package com.jizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 王书豪
 * @since 2020-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Drugstore对象", description="")
public class Drugstore implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId(value = "rugstoreId", type = IdType.AUTO)
    private Integer rugstoreId;

    @ApiModelProperty(value = "药品名称")
    @TableField("drugstoreName")
    private String drugstoreName;

    @ApiModelProperty(value = "供货单位")
    @TableField("supplierId")
    private Integer supplierId;

    @ApiModelProperty(value = "经办人")
    @TableField("skullId")
    private Integer skullId;

    @ApiModelProperty(value = "库房")
    @TableField("warehouseId")
    private Integer warehouseId;

    @ApiModelProperty(value = "计量单位")
    private Integer unit;

    @ApiModelProperty(value = "批发价")
    @TableField("tradePrice")
    private Double tradePrice;

    @ApiModelProperty(value = "售价")
    @TableField("sellingPrice")
    private Double sellingPrice;

    @ApiModelProperty(value = "产地")
    private Integer area;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "生产日期")
    @TableField("produceDate")
    private Date produceDate;

    @ApiModelProperty(value = "有效期")
    @TableField("validDate")
    private Date validDate;

    @ApiModelProperty(value = "数量")
    private Integer drugstorenum;

    @ApiModelProperty(value = "批号")
    private String batch;

    @ApiModelProperty(value = "插入时间")
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer deleted;


}
